package com.onLineCar.manages.pojo.imageenum;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum ImageEnum {


    CAR_IMAGE(1, "车辆图片"),

    USER_IMAGE(2, "用户头像"),

    CAR_IMAGE_BACK(3, "车辆图片后置"),

    CAR_IMAGE_FRONT(4, "车辆图片前置"),

    CAR_IMAGE_LEFT(5, "车辆图片左"),

    CAR_IMAGE_RIGHT(6, "车辆图片右"),

    CAR_IMAGE_TOP(7, "车辆图片上"),

    CAR_IMAGE_BOTTOM(8, "车辆图片下"),

    CAR_IMAGE_OTHER(9, "车辆图片其他"),

    CAR_DOCUMENT_PHOTO(10, "车辆证件照"),

    CAR_DOCUMENT_PHOTO_OTHER(11, "车辆证件照其他"),

    CAR_DOCUMENT_PHOTO_TAX(12, "车辆税务证"),

    CAR_DOCUMENT_PHOTO_TRANSPORT(13, "车辆运输证"),

    CAR_INVOICE_PHOTO(14, "车辆发票照片"),

    CAR_LICENSE_PLATE_PHOTO(15, "合格证"),

    CAR_DRIVING_LICENSE_PHOTO(16, "行驶证"),

    CAR_REGISTRATION_CERTIFICATE_PHOTO(17, "登记证书"),

    CAR_TAX_CERTIFICATE_PHOTO(18, "完税证明"),

    CAR_TRANSPORT_CERTIFICATE_PHOTO(19, "汽车运输证照片"),

    CAR_OTHER_PHOTO(20, "其他照片");

    public static Integer getImageTypeByImageName(String ImageName) {
        for (ImageEnum imageEnum : ImageEnum.values()) {
            if (imageEnum.imageName.equals(ImageName)) {
                return imageEnum.imageType;
            }
        }
        return null;
    }

    public Integer imageType;

    public String imageName;
}
